package edu.ucsc.gameAI.conditions;

import pacman.game.Constants.GHOST;
import pacman.game.Game;
import edu.ucsc.gameAI.ICondition;

public class AreAnyGhostsEdible implements ICondition {
	
	public boolean test(Game game) 
	{
		//Debug.debug("AreAnyGhostsEdible", MESSAGETYPE.CONDITION);
		for (GHOST ghost: GHOST.values()){
			if(game.isGhostEdible(ghost))
				return true; // return true as soon as we've confirmed at least one ghost is edible.
		}
		return false;
	}
}
